package frontend.bean;

public class ComboBoxItem {

	public static final byte CBX_ITEM_TITLE = (byte) 0;
	public static final byte CBX_ITEM_DATA = (byte) 1;
	public static final byte CBX_ITEM_LABEL = (byte) 2;

	private byte itemType;
	private String name;
	private String value;

	 public ComboBoxItem(String itemName, String itemValue, byte type) {
	        this.name = itemName;
	        this.value = itemValue;
	        this.itemType = type;
	    }
	 
	 public boolean isTitleItem() {
	        return (itemType == CBX_ITEM_TITLE);
	    }

	    public boolean isLabelItem() {
	        return (itemType == CBX_ITEM_LABEL);
	    }
	    
	    public boolean isDataItem(){
	    	return (itemType == CBX_ITEM_DATA);
	    }
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
